package com.kx.service.impl;

import com.kx.dao.AdminMapper;
import com.kx.bean.Admin;
import com.kx.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminMapper adminMapper;

    @Override
    public Admin selectByUsernameAndPassword(String username, String password) {
        return adminMapper.selectByUsernameAndPassword(username, password);
    }

    @Override
    public Admin selectAll(Integer mid) {
        return adminMapper.selectByPrimaryKey(mid);
    }

}
